<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="utf-8" />
    <title>HTML Preview(markdown to html) - Editor.md examples</title>
    <link rel="stylesheet" href="../css/editormd.preview.css" />

</head>

<body>   
    <div id="editormd-view">
        <textarea style="display:block;">
<%- desc%>
        </textarea>
    </div>
    <!-- <script src="js/zepto.min.js"></script>
		<script>		
			var jQuery = Zepto;  // 为了避免修改flowChart.js和sequence-diagram.js的源码，所以使用Zepto.js时想支持flowChart/sequenceDiagram就得加上这一句
		</script> -->
    <script src="../js/jquery.min.js"></script>
    <script src="../js/lib/marked.min.js"></script>
    <script src="../js/lib/prettify.min.js"></script>

    <script src="../js/lib/raphael.min.js"></script>
    <script src="../js/lib/underscore.min.js"></script>
    <script src="../js/lib/sequence-diagram.min.js"></script>
    <script src="../js/lib/flowchart.min.js"></script>
    <script src="../js/lib/jquery.flowchart.min.js"></script>

    <script src="../js/editormd.js"></script>
    <script type="text/javascript">
        $(function () {
            var EditormdView;

            //console.log($('#description').html());

            EditormdView = editormd.markdownToHTML("editormd-view", {
                htmlDecode: "style,script,iframe", // you can filter tags decode
                emoji: true,
                taskList: true,
                tex: true, // 默认不解析
                flowChart: true, // 默认不解析
                sequenceDiagram: true, // 默认不解析
            });
        });
    </script>
</body>

</html>